<template>
  <div class="nav">
    {{ this.$store.state.title }}
  </div>
</template>

<script>
export default {
  name: "Detail",
  mounted() {
    //   var {id} = this.$route.params;
    
  },
  computed: {
    title() {
      return this.$store.state.title;
    },
  },
  activated(){
    document.title = this.title;
  }
};
</script>

<style>
.nav {
  text-align: center;
  font-size: 25px;
  line-height: 60px;
  background: olivedrab;
  color: aliceblue;
}
</style>